
import request from '@/utils/request'
// 获取仓库数据
export function GETWarehouseList(params) {
  return request({
    url: '/warehouse/page',
    method: 'get',
    params
  })
}
// 改变仓库的状态
export function changeHouseList(data) {
  return request({
    url: '/warehouse',
    method: 'put',
    data
  })
}
// 删除仓库
export function delHouseList(id) {
  return request({
    url: `/warehouse?ids[]=${id}`,
    method: 'DELETE'
  })
}
// 新建仓库获取仓库id 此条为CK
export function geiAddId() {
  return request({
    url: `/codeFactory/next/CK`,
    method: 'get'
  })
}
// 新建仓库
export function AddHouseList(data) {
  return request({
    url: `/warehouse`,
    method: 'post',
    data
  })
}

// 修改仓库
export function biNewHouseList(data) {
  return request({
    url: `/warehouse`,
    method: 'put',
    data
  })
}
